package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.business.query.AppointmentQuery;
import cn.wolfcode.car.common.base.page.TablePageInfo;

import java.util.List;

import static cn.wolfcode.car.business.domain.Appointment.SOFTDELETE_COMPLETE;

/**
 * 养修预约服务接口
 */
public interface IAppointmentService {

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<Appointment> query(AppointmentQuery qo);


    /**
     * 查单个
     * @param id
     * @return
     */
    Appointment get(Long id);


    /**
     * 保存
     * @param appointment
     */
    void save(Appointment appointment);

  
    /**
     * 更新
     * @param appointment
     */
    void update(Appointment appointment);


    /**
     * 查询全部
     * @return
     */
    List<Appointment> list();

    /**
     *  删除
     * @param ids
     */
    void deleteBatch(String ids,Integer deleteComplete);


    void changStatus(Long id);


    void arrival(Long id);

    Long generateStatement(Long appointmentId);
}
